package com.cafuc.javaEE.service;

import com.cafuc.javaEE.common.Result;
import com.cafuc.javaEE.entity.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    Result<User> insertUser(User user);

    Result<User> updateUser(User user);

    User getUserById(int id);

    Result<Object> deleteUserById(int id);

    Result<User> getUserByUserNameAndPassword(HttpServletRequest req, String userName, String password);

    void loginout(HttpServletRequest req);
}

